package L1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * 个位数统计
 */
public class _003 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String line = reader.readLine();
        int[] temp = new int[10];
        for (int i=0;i<line.length();i++){
            int t = line.charAt(i) - '0';
            temp[t]++;
        }

        for (int i=0;i<10;i++){
            if (temp[i]!=0){
                System.out.println(i+":"+temp[i]);
            }
        }
    }
}
